import service from '@/utils/request'

// @Tags SelfmadeOutsourceSetting
// @Summary 创建自制外购配件配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SelfmadeOutsourceSetting true "创建自制外购配件配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /selfmadeOutsourceSetting/createSelfmadeOutsourceSetting [post]
export const createSelfmadeOutsourceSetting = (data) => {
  return service({
    url: '/selfmadeOutsourceSetting/createSelfmadeOutsourceSetting',
    method: 'post',
    data
  })
}

// @Tags SelfmadeOutsourceSetting
// @Summary 删除自制外购配件配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SelfmadeOutsourceSetting true "删除自制外购配件配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /selfmadeOutsourceSetting/deleteSelfmadeOutsourceSetting [delete]
export const deleteSelfmadeOutsourceSetting = (params) => {
  return service({
    url: '/selfmadeOutsourceSetting/deleteSelfmadeOutsourceSetting',
    method: 'delete',
    params
  })
}

// @Tags SelfmadeOutsourceSetting
// @Summary 批量删除自制外购配件配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除自制外购配件配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /selfmadeOutsourceSetting/deleteSelfmadeOutsourceSetting [delete]
export const deleteSelfmadeOutsourceSettingByIds = (params) => {
  return service({
    url: '/selfmadeOutsourceSetting/deleteSelfmadeOutsourceSettingByIds',
    method: 'delete',
    params
  })
}

// @Tags SelfmadeOutsourceSetting
// @Summary 更新自制外购配件配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SelfmadeOutsourceSetting true "更新自制外购配件配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /selfmadeOutsourceSetting/updateSelfmadeOutsourceSetting [put]
export const updateSelfmadeOutsourceSetting = (data) => {
  return service({
    url: '/selfmadeOutsourceSetting/updateSelfmadeOutsourceSetting',
    method: 'put',
    data
  })
}

// @Tags SelfmadeOutsourceSetting
// @Summary 用id查询自制外购配件配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SelfmadeOutsourceSetting true "用id查询自制外购配件配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /selfmadeOutsourceSetting/findSelfmadeOutsourceSetting [get]
export const findSelfmadeOutsourceSetting = (params) => {
  return service({
    url: '/selfmadeOutsourceSetting/findSelfmadeOutsourceSetting',
    method: 'get',
    params
  })
}

// @Tags SelfmadeOutsourceSetting
// @Summary 分页获取自制外购配件配置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取自制外购配件配置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /selfmadeOutsourceSetting/getSelfmadeOutsourceSettingList [get]
export const getSelfmadeOutsourceSettingList = (params) => {
  return service({
    url: '/selfmadeOutsourceSetting/getSelfmadeOutsourceSettingList',
    method: 'get',
    params
  })
}
